﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MarvellousWorks.PracticalPattern.Concept.Configurating
{
    public static class ConfigurationBorker
    {
        private static ChapterConfigurationSectionGroup group;

        static ConfigurationBorker()
        {
            Configuration configuration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
            group = (ChapterConfigurationSectionGroup)configuration.GetSectionGroup("MarvellousWorks.PracticalPattern.Concept");
        }

        public static DelegatingParagramConfigurationSection Delegating
        {
            get { return group.Delegating; }
        }

        public static GenericParagramConfigurationSection Generics
        {
            get { return group.Generics; }
        }

    }
}
